package com.wngbms.netty.book._06endec._01;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class IntegerProcessHandler extends ChannelInboundHandlerAdapter {

    /**
     * class io.netty.channel.DefaultChannelHandlerContext
     * class java.lang.Integer
     * @param ctx
     * @param msg
     * @throws Exception
     */
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        Integer integer = (Integer) msg;
        log.info("{}", integer);
    }
}
